< previous page page_117 next page >

Page 117
Illustrating Example: Second Bank of Carrollton
Your client requires that the Samsona Bank Teller System dial up the Federal Reserve's online funds rate monitoring system every fifteen minutes to obtain the latest Fed Funds Rate. All bank products and internal bank holding accounts that depend on this rate must reflect it in calculating the interest rate for each type of interest-sensitive account. After completing the analysis and design for this requirement, you have the simplified account classes, as shown in Table 5.1.
TABLE 5.1. IMPORTANT APPLICATION CLASSES FOR THE SECOND BANK OF CARROLLTON.
ClassAttributeMethod
SavingsAccountNumbercalculateInterestRate()
CurrentBalanceaccrueInterest()
InterestRatedeposit()
withdraw()
InterestBearingCheckingAccountNumbercalculateInterestRate()
CurrentBalanceaccrueInterest()
InterestRatedeposit()
withdraw()
BankHoldingAccountNumbercalculateInterestRate()
CurrentBalanceaccrueInterest()
InterestRatedeposit()
TypeOfHoldingtransfer()
calculateTax()
FedFundsMonitorPhoneNumbercalculateFundsRate()
CurrentRategetRate()
ObjectFactoryNonecreateSavings()
createInterestBearingChecking()
createBankHolding()
AccountCollectionNoneaddObject()
removeObject()
getObject()
persistObjects()

Listing 5.1 shows the declarations for each object.

 
< previous page page_117 next page >

If you like this book, buy it!